﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Client.Cache;


namespace Client
{
    class ParamitersManager: Cache.CacheObject
    {
        protected string _path = @"Datastore\Projects";

        public ParamitersManager()
        {
            _path = Path.Combine(Environment.CurrentDirectory, _path);
        }

        public byte[] GetParamiter(int projectId, int paramiterId, bool isDynamic){

            if (isDynamic)
            {
                return ServerConnection.Instance.GetParamiter(projectId, paramiterId, isDynamic);
            }
            else
            {
                if (this.TryCache(projectId, paramiterId))
                {
                    
                } else {

                }
            }
            throw new NotImplementedException();
        }

        private bool TryCache(int projectId, int paramiterId)
        {
            throw new NotImplementedException();
        }
    }
}
